<?php

// this check prevents access to debug front controllers that are deployed by accident to production servers.
// feel free to remove this, extend it or make something more sophisticated.
if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
{
  die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}

require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');

$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true);
sfContext::createInstance($configuration)->dispatch();
/*

 $img = new sfImage('image1.jpg', 'image/jpg');

    $response = $configuration->getResponse();

    $response->setContentType($img->getMIMEType());    

    $img->resize(1000,null)->overlay(new sfImage('logo.png'), 'bottom-right');

    $response->setContent($img); 

    return sfView::NONE;

    
    $img = new sfImage('image1.jpg', 'image/jpg');
    $img->thumbnail(150,150);
    $img->setQuality(50);
    $img->saveAs('image1_150x150.gif');
		*/
		echo 'mike';